<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Веб-программирование, разработка сайтов, интернет магазинов. Веб-дизайн. Дизайн." />
<link href="css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/slider.js"></script>
<title>Astaldo Group</title>
<s:head />
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-30313648-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
	<!-- langchange -->
	<s:url var="en" action="lang" namespace="/action">
		<s:param name="request_locale">en</s:param>
		<s:param name="url">works</s:param>
		<s:param name="from">works.jsp</s:param>
		<s:param name="id">
			<s:property value="%{id}" />
		</s:param>
	</s:url>
	<s:url var="ru" action="lang" namespace="/action">
		<s:param name="request_locale">ru</s:param>
		<s:param name="url">works</s:param>
		<s:param name="from">works.jsp</s:param>
		<s:param name="id">
			<s:property value="%{id}" />
		</s:param>
	</s:url>
	<s:url var="cz" action="lang" namespace="/action">
		<s:param name="request_locale">cz</s:param>
		<s:param name="url">works</s:param>
		<s:param name="from">works.jsp</s:param>
		<s:param name="id">
			<s:property value="%{id}" />
		</s:param>
	</s:url>
	<!-- langchange -->
<s:set var="here" value="%{'works'}" />

	<s:url var="company" action="lang" namespace="/action">
		<s:param name="url">company.jsp</s:param>
	</s:url>
	<s:url var="main" action="lang" namespace="/action">
		<s:param name="url">main.jsp</s:param>
	</s:url>
	<s:url var="service" action="lang" namespace="/action">
		<s:param name="url">service.jsp</s:param>
	</s:url>
	<s:url var="works" action="works" namespace="/action">
		<s:param name="url">works.jsp</s:param>
	</s:url>
	<s:url var="order" action="lang" namespace="/action">
		<s:param name="url">order.jsp</s:param>
	</s:url>

	
	<!-- header -->
	<jsp:include page="/pages/guest/header.jsp"></jsp:include>
	<!-- header -->
	
	<div class="container">
		<div id="left_block">
			<ol id="left_menu">
				<!-- sections -->
				<s:iterator value="allSections">
					<s:url var="secURL" action="works" namespace="/action">
						<s:param name="id"><s:property value="ID" /></s:param>
					</s:url>
					<li
						<s:if test="%{secById==null&&ID==defSection.ID}"> class="active_left_menu" </s:if>
						<s:elseif test="%{secById!=null&&ID==secById.ID}">class="active_left_menu"</s:elseif>>
						<a href="${secURL}"><s:if
								test="#session.WW_TRANS_I18N_LOCALE.language=='en'">
								<s:property value="NAME" />
							</s:if> <s:if test="#session.WW_TRANS_I18N_LOCALE.language=='cz'">
								<s:property value="NAME_CZ" />
							</s:if> <s:if test="#session.WW_TRANS_I18N_LOCALE.language=='ru'">
								<s:property value="NAME_RU" />
							</s:if> </a>
					</li>
				</s:iterator>
				<!-- sections -->
			</ol>
		</div>
		<div class="poloska_1 l">
			<div class="tran_p"></div>
			<div class="stat_p"></div>
		</div>
		<div id="center_block">
			<!-- works -->
			<s:if test="%{secById==null}">
				<s:set name="workss" value="defSection.WORKS" />
			</s:if>
			<s:elseif test="%{secById!=null}">
				<s:set name="workss" value="secById.WORKS" />
			</s:elseif>

			<s:iterator value="%{workss}" >
				<!-- onework -->
				<s:url var="onework" action="onework" namespace="/action">
					<s:param name="id"><s:property value="ID"/></s:param>
				</s:url>
				<div class="block_portfolio">
					<div class="img_portfolio">
						<a href="${onework}"><img src="<s:property value="%{getViewLPhoto(1)}"/>" alt="" /></a>
					</div>
					<div class="info_portfolio">
						<a href="${onework}" class="name_portfolio"><s:if
								test="#session.WW_TRANS_I18N_LOCALE.language=='en'">
								<s:property value="NAME" />
							</s:if> <s:if test="#session.WW_TRANS_I18N_LOCALE.language=='cz'">
								<s:property value="NAME_CZ" />
							</s:if> <s:if test="#session.WW_TRANS_I18N_LOCALE.language=='ru'">
								<s:property value="NAME_RU" />
							</s:if></a>
						<p class="description_portfolio">
							<s:if test="#session.WW_TRANS_I18N_LOCALE.language=='en'">
								<c:set var="string" value="${ABOUT} " />
								<c:out value="${fn:substring(string,0,50)} " />...
							</s:if>
							<s:if test="#session.WW_TRANS_I18N_LOCALE.language=='cz'">
								<c:set var="stringcz" value="${ABOUT_CZ} " />
								<c:out value="${fn:substring(stringcz,0,50)} " />...
							</s:if>
							<s:if test="#session.WW_TRANS_I18N_LOCALE.language=='ru'">
								<c:set var="stringru" value="${ABOUT_RU} " />
								<c:out value="${fn:substring(stringru,0,50)} " />...
							</s:if>
						</p>
						<a href="${onework}" class="link_portfolio"><s:property
								value="getText('moreAbout')" /></a> <a target="_blank"
							href="<s:property value="LINK" />" class="link_portfolio"><s:property
								value="LINK" /></a>
					</div>
				</div>
				<!-- onework -->
			</s:iterator>

			<!-- works -->
		</div>
	</div>
	<!-- footer -->
	<jsp:include page="/pages/guest/footer.jsp"></jsp:include>
        <!-- footer -->
</body>
</html>